package com.yisu.expressway.manager.core.mapper;

import com.yisu.expressway.ewf.entity.OrderMain;
import com.yisu.expressway.manager.domain.request.OrderRequest;

import java.util.List;

public interface OrderMainMapper {
    int deleteByPrimaryKey(Long orderId);

    int insert(OrderMain record);

    int insertSelective(OrderMain record);

    OrderMain selectByPrimaryKey(Long orderId);

    int updateByPrimaryKey(OrderMain record);

    int updateByPrimaryKeySelective(OrderMain orderMain);

    /**
     * 分页获取订单列表信息
     * @param orderRequest
     * @return
     */
    List<OrderMain> getOrderMainListByPage(OrderRequest orderRequest);

    /**
     * 修改订单状态
     * @param orderMain 订单信息
     * @return 成功，失败
     */
    int updateOrderStatus(OrderMain orderMain);

}